package Models;

/**
 * Created with IntelliJ IDEA.
 * User: Shreyansh
 * Date: 18/8/13
 * Time: 1:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {
    public String movieName;
    public int yearOfRelease;
    public String directorName;
    public String movieRating;

    public Movie(){

    }

    public Movie(String name, int year, String director, String rating)
    {
        this.movieName =name;
        this.yearOfRelease =year;
        this.directorName =director;
        this.movieRating =rating;
    }
    public void DisplayMovieDetails()
    {
        String movieDetails=String.format("%25s %10s %20s %10s",this.movieName,this.yearOfRelease,this.directorName,this.movieRating);

        System.out.println(movieDetails);
    }
    }


